package com.guigusuqi.hy.service;

import com.guigusuqi.commonutils.vo.Result;
import com.guigusuqi.hy.entity.IntegralAdmin;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.IOException;

/**
 * <p>
 * 积分明细管理 服务类
 * </p>
 *
 * @author suqi
 * @since 2022-04-14
 */
public interface IntegralAdminService extends IService<IntegralAdmin>
{
    /**
     * 添加用户积分
     * @param integralType
     * @param openid
     * @return
     */
    Result addIntegral(String integralType, String openid) throws IOException;

    /**
     * 查看用户绑定的会员卡的积分详情
     * @return
     */
    Result selectUserIntegral() throws IOException;
}
